//
//  Cateogry.h
//  005_NSStringCategory
//
//  Created by sunhaiyan on 16/2/23.
//  Copyright © 2016年 baidu. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NSMutableString* (^HYBlock)(NSString *);
typedef NSMutableString* (^HYBlock2)(NSString *, NSString *);
typedef NSString* (^CYBlock2Int)(NSInteger , NSInteger );
@interface NSMutableString(HY)


/**
 *  字符串拼接
 *  str2.add(@"aaa").add(@"bbbb");
 *  @return 拼接完的字符串
 */
- (HYBlock)add;

/**
 *  替换str中的oldstr为newStr
 *  str2.replace(@"good",@"xxxx").replace(@"xnice",@"HHHH").replace(nil,nil);
 *  @return 替换完的str
 */
- (HYBlock2)replace;

@end
